'use strict';

var mongoose = require('mongoose');

var areaModel = function () {

    //Define a super simple schema for our products.
    var areaSchema = mongoose.Schema({
        catId: Number,
        catName: String,
        catDir: String,
        linkUrl: String,
        userName: String,
        parentId: Number,
        parentIdArray: Array,
        childId: Number,
        childIdArray: Array,
        seoTitle: String,
        seoKeyword: String
    });

    //Verbose toString method
    areaSchema.methods.whatAmI = function () {

    };

    return mongoose.model('Area', areaSchema);

};

module.exports = new areaModel();
